home *** CD-ROM | disk | FTP | other *** search
/ InfoMagic Internet Tools 1995 April / Internet Tools.iso / infoserv / www / cern / doc / www-talk.archive.Z / www-talk.archive / text0237.txt < prev    next >
Encoding:
Text File  |  1992-11-30  |  1.0 KB  |  22 lines

  1. I wrote a simple set of scripts that ran the unformatted man sources
  2. through nroff with a special set of man macros that did away with the
  3. page headings/footings, and converted the formatted ascii output into
  4. html.  I wanted to convert any references to things that look like man
  5. pages (as in "man(1)") to links.  What I really wanted was to put the
  6. man page in a <listing> environment to preserve the formatting, but
  7. you can't embed anchors there.  </LISTING><A ...>...</A><LISTING>
  8. seems to cause paragraph breaks, not quite what I had in mind.  
  9.  
  10. I finally settled on making a list of the man page references and
  11. turned them into an extra See Also section at the end of the document.
  12. Its ugly, but functional.  I'll clean up the code and make it
  13. available if anyone is interested.
  14.  
  15. It would be nice if there were a thing like LISTING that allowed
  16. anchors.  Are there any plans for such a thing (or maybe there's a way
  17. to do it now that I don't know about)?  It would make the task of
  18. converting misc text files into HTML much easier.
  19.  
  20. --- Steve
  21.  
  22.